﻿<%@ Page Title="电池单体数据分析" Language="C#" MasterPageFile="~/Web/Main.Master" AutoEventWireup="true" CodeBehind="singleHistory.aspx.cs" Inherits="BOMS.WebUI.Web.DataAnalyse.singleHistory" %>
<%@ Register Assembly="BOMS.Utility" Namespace="BOMS.Utility.CustomControl" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Js/DatePicker/WdatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center" border="0">
    <tr>
        <th>按条件检索定位单体电池历史数据并生成图表分析</th>
    </tr>
    <tr class="usertablerow4">
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	            <tr>
                    <td width="65%" height="30" align="right">
                        现场主机：<asp:DropDownList ID="drpEquip" runat="server" AutoPostBack="true">
                            <asp:ListItem Value="" Text="请选择现场主机"></asp:ListItem>               
                        </asp:DropDownList>
                        电池组：<asp:DropDownList ID="drpBatgrp" runat="server" AutoPostBack="true">
                            <asp:ListItem Value="" Text="请选择电池组"></asp:ListItem>                
                        </asp:DropDownList>
                        电池：<asp:DropDownList ID="drpBattery" runat="server">
                            <asp:ListItem Value="" Text="请选择电池"></asp:ListItem>               
                        </asp:DropDownList>
                    </td>
                    <td width="5%"></td>
                    <td align="left">
                       <%-- <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">压缩显示</asp:ListItem><asp:ListItem>全部显示</asp:ListItem>
                        </asp:RadioButtonList>--%>
                    </td>
                </tr>
                <tr>
                    <td width="65%" height="30" align="right">
                    开始时间：<asp:TextBox ID="txtDtmBegin" runat="server" Width="150px" CssClass="Wdate" onFocus="WdatePicker({skin:'whyGreen',isShowClear:true,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
                    结束时间：<asp:TextBox ID="txtDtmEnd" runat="server" Width="150px" CssClass="Wdate" onFocus="WdatePicker({skin:'whyGreen',isShowClear:true,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
                    </td>
                    <td width="5%"></td>
                    <td align="left"><asp:Button ID="btnQuery" runat="server" Text="查 询" class="btnbg" /></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<table class="usertableborder" id="reheader" cellspacing="1" cellpadding="3" width="96%" align="center" border="0">
    <tr class="usertablerow4">
        <td colspan="6">
	        <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" >
		        <tr><td width="100%" align="left" colspan="2"><font>查询目标：</font>现场主机 <font><asp:Label ID="Label_wince" runat="server" Text=""></asp:Label></font> 电池组 <font><asp:Label ID="Label_group" runat="server" Text=""></asp:Label></font> 电池 <font><asp:Label ID="Label_battery" runat="server" Text=""></asp:Label></font></td></tr>
                <tr>
                    <td width="66%" align="left"><font>查询时间：</font>从 <font><asp:Label ID="Label_begin" runat="server" Text=""></asp:Label></font> 至 <font><asp:Label ID="Label_end" runat="server" Text=""></asp:Label></font> 历史数据 <font><asp:Label ID="Label_count" runat="server" Text=""></asp:Label></font> 条</td>
                    <td width="24%" align="right"><asp:Button ID="Button2" runat="server" Text="生成图表"  class="btnbg" Enabled="false" /><asp:Button ID="Button3" runat="server" Text="导出execl" class="btnbg" onclick="Button3_Click"  Enabled="false" /></td>
                </tr>
	        </table> 
        </td>
    </tr>
    <tr>
        <td class="usertablerow3">记录序号</td>
        <td class="usertablerow3">电压(V)</td>
        <td class="usertablerow3">内阻(mΩ)</td>
        <td class="usertablerow3">温度(℃)</td>
        <td class="usertablerow3">状态</td>
        <td class="usertablerow3">采集时间</td>
    </tr>
    <asp:Repeater runat="server" ID="Repeater1">
        <ItemTemplate>
             <tr>
                <td class="usertablerow2"><%#Eval("LogID")%></td>
                <td class="usertablerow2"><%#Eval("Vval")%></td>
                <td class="usertablerow2"><%#Eval("Rval")%></td>
                <td class="usertablerow2"><%#Eval("Tval")%></td>
                <td class="usertablerow2"><%#Eval("Status")%></td>
                <td class="usertablerow2"><%#Eval("LogTime")%></td>
            </tr> 
        </ItemTemplate>    
    </asp:Repeater>
</table>
<cc1:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged" PageSize="15" style="display:block;width:96%;margin:0 auto;"></cc1:AspNetPager>
</asp:Content>
